import axios from '../axios'
// 查询部门人员
export const  queryUserList= (params) => {
    return axios ({
        url: '/systemUser/queryUserList',
        method:'get',
        params   
    })
}
// 客户管理 导入
export const  customerManagerImport= (params) => {
    return axios ({
        url: '/studentInfo/customerManagerImport',
        method:'get',
        params   
    })
}
// 批量调整归属分中心
export const  studentBelongTo= (data) => {
    return axios ({
        url: '/studentBelongTo/customerManager',
        method:'post',
        data   
    })
}
// 客户管理 学生客户批量删除
export const  studentDelete= (data) => {
    return axios ({
        url: '/studentDelete/customerManager',
        method:'post',
        data   
    })
}
// 客户管理 查询学生客户详细信息
export const  studentQueryInfo= (params) => {
    return axios ({
        url: '/studentQuery/detail',
        method:'get',
        params   
    })
}
// 客户管理 查询学生客户详细信息转义的
export const  studentQueryInfoWithEscape= (params) => {
    return axios ({
        url: '/studentQuery/detailWithEscape',
        method:'get',
        params   
    })
}
// 更新学生客户信息
export const  studentInfoUpdate= (data) => {
    return axios ({
        url: '/studentInfo/update',
        method:'post',
        data   
    })
}
// 订单退单/非退单
export const  studentSignReturn= (params) => {
    return axios ({
        url: '/studentSign/return',
        method:'get',
        params   
    })
}
// 学生客户查询订单列表接口
export const  studentSignList= (params) => {
    return axios ({
        url: '/studentSign/queryStudentSignList',
        method:'get',
        params   
    })
}
// 学生签约接口
export const  studentSign= (data) => {
    return axios ({
        url: '/studentSign/sign',
        method:'post',
        data   
    })
}
// 解锁锁定
export const  studentInfoLock= (params) => {
    return axios ({
        url: '/studentInfo/lock',
        method:'get',
        params   
    })
}

// 获取学生来源 进展等下拉框的信息
export const optionsList = (params) => {
    return axios({
        url: '/code/queryKVs?codetpye',
        method: 'get',
        params
    })
}
// 获取沟通结果
export const studentProgressResult = (params) => {
    return axios({
        url: '/code/queryKVs?codeType=student_progress_result',
        method: 'get',
        params
    })
}

// 获取导入部门
export const studentImportDepartment = (params) => {
    return axios({
        url: '/code/queryKVs?codeTpye=student_import_department',
        method: 'get',
        params
    })
}
// 客户统计查询列表
export const saleOperationStatisticalList = (params) => {
    return axios({
        url: '/saleOperationStatistical/queryList',
        method: 'get',
        params
    })
}
// 查询客户归属 总部学生客户
export const studentCustomerBelongList = (params) => {
    return axios({
        url: '/studentQuery/customerBelong',
        method: 'get',
        params
    })
}
// 查询分中心客户
export const studentQueryBrCustomer = (params) => {
    return axios({
        url: '/studentQuery/brCustomer',
        method: 'get',
        params
    })
}

// 总部批量归属至分中心
export const  studentBelongTocustomerManager= (data) => {
    return axios ({
        url: '/studentBelongTo/customerManager',
        method:'post',
        data   
    })
}
// 学生客户分中心客户公海
export const studentQuerybrCustomerSea = (params) => {
    return axios({
        url: '/studentQuery/brCustomerSea',
        method: 'get',
        params
    })
}
// 资源划分 学生客户列表
export const studentQuerycustomerAssign = (params) => {
    return axios({
        url: '/studentQuery/resourceAssign',
        method: 'get',
        params
    })
}
// 资源划分 学生资源批量分配
export const  studentAssignResourceAssign= (data) => {
    return axios ({
        url: '/studentAssign/resourceAssign',
        method:'post',
        data   
    })
}
// 我的客户 学生客户
export const studentQueryMyCustomer = (params) => {
    return axios({
        url: '/studentQuery/myCustomer',
        method: 'get',
        params
    })
}
// 我的客户 我的客户添加
export const  studentInfoMyCustomerAdd= (data) => {
    return axios ({
        url: '/studentInfo/myCustomerAdd',
        method:'post',
        data   
    })
}
// TQ相关  添加呼叫信息
export const  studentCalInfo= (data) => {
    return axios ({
        url: '/studentCall/call',
        method:'post',
        data   
    })
}
// 查询外呼记录列表
export const studentCalQuerylList = (params) => {
    return axios({
        url: '/studentCall/queryCallList',
        method: 'get',
        params
    })
}
// 新建学生客户跟进
export const  addstudentTracking= (data) => {
    return axios ({
        url: '/studentTracking/tracking',
        method:'post',
        data   
    })
}
// 查询学生跟进信息
export const stuqueryTrackingInfo = (params) => {
    return axios({
        url: '/studentTracking/queryTrackingInfo',
        method: 'get',
        params
    })
}
// 查询学生跟进列表
export const queryStudentTrackingList = (params) => {
    return axios({
        url: '/studentTracking/queryStudentTrackingList',
        method: 'get',
        params
    })
}
// 查询跟进列表
export const studentTrackingQueryTrackingList = (params) => {
    return axios({
        url: '/studentTracking/queryTrackingList',
        method: 'get',
        params
    })
}

// 查询当前用户的外呼记录
export const queryStudentCallList = (params) => {
    return axios({
        url: '/studentCall/queryStudentCallList',
        method: 'get',
        params
    })
}

// 查询客户公海
export const studentQueryCustomerSea = (params) => {
    return axios({
        url: '/studentQuery/customerSea',
        method: 'get',
        params
    })
}
// 物理删除
export const  studentInfoDelete= (data) => {
    return axios ({
        url: '/studentInfo/delete',
        method:'post',
        data   
    })
}
// 我的客户导入
export const studentInfoMyCustomerImport = (params) => {
    return axios({
        url: '/studentInfo/myCustomerImport',
        method: 'get',
        params
    })
}
// 设置学生客户分配策略
export const  strategyConfigSetStrategy= (data) => {
    return axios ({
        url: '/strategyConfig/setStrategy',
        method:'post',
        data   
    })
}
// 查询分配策略
export const strategyConfigQueryStrategy = (params) => {
    return axios({
        url: '/strategyConfig/queryStrategy',
        method: 'get',
        params
    })
}
// 客户公海查询配置
export const strategyConfigQueryConfig = (params) => {
    return axios({
        url: '/strategyConfig/queryConfig',
        method: 'get',
        params
    })
}
// 设置分配
export const strategyConfigSetConfig = (data) => {
    return axios({
        url: '/strategyConfig/setConfig',
        method: 'post',
        data
    })
}
// 客户分配客户列表
export const studentQueryCustomerAssign = (params) => {
    return axios({
        url: '/studentQuery/customerAssign',
        method: 'get',
        params
    })
}
// 客户分配导入
export const studentInfoCustomerAssignImport = (params) => {
    return axios({
        url: '/studentInfo/customerAssignImport',
        method: 'get',
        params
    })
}
// 导出
export const saleOperationStatisticalExport= (params) => {
    return axios({
        url: '/saleOperationStatistical/export',
        method: 'get',
        params
    })
}
// 资源划分导入
export const resourceAssignImport = (params) => {
    return axios({
        url: '/studentInfo/resourceAssignImport',
        method: 'get',
        params
    })
}
// 资源划分新加客户
export const resourceAssignAdd = (data) => {
    return axios({
        url: '/studentInfo/resourceAssignAdd',
        method: 'post',
        data
    })
}
// 客户分配添加
export const customerAssignAdd = (data) => {
    return axios({
        url: '/studentInfo/customerAssignAdd',
        method: 'post',
        data
    })
}
// 我的客户添加
export const myCustomerAdd = (data) => {
    return axios({
        url: '/studentInfo/myCustomerAdd',
        method: 'post',
        data
    })
}
// 查询大区经理
export const querySignRep = (params) => {
    return axios({
        url: 'branchcenter/querySignRep',
        method: 'get',
        params
    })
}
// 客户管理导出
export const stuManagerExport = (params) => {
    return axios({
        url: '/studentInfo/exportCustomerManager',
        method: 'get',
        params
    })
}
// 客户管理所属部门
export const queryDepartmentListForCustomerManager = (params) => {
    return axios({
        url: '/department/queryDepartmentListForCustomerManager?deptLevel=3',
        method: 'get',
        params
    })
}
// 查询手机号码归属地
export const queryCallAddress = (params) =>{
    return axios({
        url:"/phone/queryPhonePlace",
        method:"post",
        params
    })
}
// 查询跟进学生时候的客户进展
export const studentTrackProgress = (params) => {
    return axios({
        url: '/code/queryKVs?codeType=track_progress',
        method: 'get',
        params
    })
}
// 查询跟进学生时候的客户类型
export const studentTrackType = (params) => {
    return axios({
        url: '/code/queryKVs?codeType=track_student_type',
        method: 'get',
        params
    })
}
// 查询科目
export const studentSubject = (params) => {
    return axios({
        url: '/code/queryKVs?codeType=specialty_cache',
        method: 'get',
        params
    })
}
// 查询学生客户资源量统计列表
export const studentTypeStatistics = (params) => {
    return axios({
        url: '/studentTypeStatistics/queryList',
        method: 'get',
        params
    })
}
// 导出学生客户资源量统计列表
export const studentTypeStatisticsExport = (params) => {
    return axios({
        url: '/studentTypeStatistics/export',
        method: 'get',
        params
    })
}

// 查看报告结果跳转接口
export const toStudentReportPage = (params) => {
    return axios({
        url: '/studentInfo/toStudentReportPage',
        method: 'get',
        params
    })
}
// 查询我的客户成单客户
export const myCustomerForSign = (params) => {
    return axios({
        url: '/studentQuery/myCustomerForSign',
        method: 'get',
        params
    })
}
// 索要资源
export const AskingFor = (params) => {
    return axios({
        url: '/studentAssign/demandResources',
        method: 'post',
        params
    })
}
// 排班导入
export const  importStudentAssignStrategyList= (params) => {
    return axios ({
        url: '/strategyConfig/importStudentAssignStrategyList',
        method:'get',
        params   
    })
}
// 跟进添加备用电话
export const updateField = (data) => {
    return axios({
        url: '/studentInfo/updateField',
        method: 'post',
        data
    })
}
// 进校资源查询
export const schoolCustomer = (params) => {
    return axios({
        url: '/studentQuery/schoolCustomer',
        method: 'get',
        params
    })
}
// 进校资源添加
export const  schoolCustomerAdd= (data) => {
    return axios ({
        url: '/studentInfo/schoolCustomerAdd',
        method:'post',
        data   
    })
}
// 进校资源导入
export const  schoolCustomerAddImport= (params) => {
    return axios ({
        url: '/studentInfo/schoolCustomerAddImport',
        method:'get',
        params   
    })
}
// 进校成单查询
export const  querySignInfo= (params) => {
    return axios ({
        url: '/studentSign/queryStudentSignList',
        method:'get',
        params   
    })
}
// 查询流转
export const  queryExchangeStu= (params) => {
    return axios ({
        url: '/record/queryList',
        method:'get',
        params   
    })
}
// 查询咨询师回收资源记录
export const  studentRecycleRecords= (params) => {
    return axios ({
        url: '/studentRecycleRecords/queryList',
        method:'get',
        params   
    })
}
// 查询学生已经成单但是没订单号的资源
export const  noSignResource= (params) => {
    return axios ({
        url: '/studentQuery/noSignResource',
        method:'get',
        params   
    })
}
// 查询学生客户资源量统计列表(月)
export const studentTypeStatisticsMonth = (params) => {
    return axios({
        url: '/studentTypeStatistics/queryList?type=2',
        method: 'get',
        params
    })
}
// 查询学生客户资源量统计列表(日)
export const studentTypeStatisticsDay = (params) => {
    return axios({
        url: '/studentTypeStatistics/queryList?type=1',
        method: 'get',
        params
    })
}
// 更新学生信息导入
export const  updateSelectivity= (params) => {
    return axios ({
        url: '/studentInfo/updateSelectivity',
        method:'get',
        params   
    })
}
// 2C分中心查询
export const  tocBranchInfo= (params) => {
    return axios ({
        url: '/branchcenter/pageList',
        method:'get',
        params   
    })
}
// 修改独家非独家
export const  updateIsSole= (data) => {
    return axios ({
        url: '/branchcenter/updateIsSole',
        method:'post',
        data   
    })
}
// 公海回收分中心配置 查询分中心
export const  branchCenterAssignStrategy= (params) => {
    return axios ({
        url: '/branchCenterAssignStrategy/queryList',
        method:'get',
        params   
    })
}
//咨询师学生统计查询列表
export const  studentTypeStatisticsZhixiao= (params) => {
    return axios ({
        url: '/studentTypeStatistics/queryList',
        method:'get',
        params   
    })
}
// 财务订单审核 确认收款
export const  receivablesOrRefunds= (params) => {
    return axios ({
        url: '/studentSign/receivablesOrRefunds',
        method:'get',
        params   
    })
}
// 开启或关闭督导中心账号状态
export const updateIsUserBranchType = (data) => {
    return axios({
        url: '/systemUser/updateIsUserBranchType',
        method: 'post',
        data
    })
}
// 获取所有督导用户和其下关联的分中心名称
export const  queryUserBranchList= (data) => {
    return axios ({
        url: '/systemControlBranch/queryUserBranchList',
        method:'post',
        data   
    })
}
// 获取督导用户下关联的分中心
export const  queryBranchListByUser= (data) => {
    return axios ({
        url: '/systemControlBranch/queryBranchListByUser',
        method:'post',
        data   
    })
}
// 保存督导用户下关联的分中心
export const  inserSystemControlBranch= (data) => {
    return axios ({
        url: '/systemControlBranch/inserSystemControlBranch',
        method:'post',
        data   
    })
}
// 督导账号关联分中心下总部分配给分中心的资源
export const  userBranchResourceAssign= (params) => {
    return axios ({
        url: '/studentQuery/userBranchResourceAssign',
        method:'get',
        params   
    })
}
// 督导账号关联分中心下由分中心提供的资源
export const  userBranchProvide= (params) => {
    return axios ({
        url: '/studentQuery/userBranchProvide',
        method:'get',
        params   
    })
}
// 学生客户资源量统计月报 导出（type:2 月  1：日）
export const exportDataFromTypeStatistics= (params) => {
    return axios({
        url: '/studentTypeStatistics/exportDataFromTypeStatistics',
        method: 'get',
        params
    })
}
// 跟进锁定
export const  trackingLock= (params) => {
    return axios ({
        url: '/studentTracking/trackingLock',
        method:'get',
        params   
    })
}
// #########################进校部相关接口#############################//
// 资源池列表
export const  studentSpreadResources= (params) => {
    return axios ({
        url: '/studentSpreadResources/queryList',
        method:'get',
        params   
    })
}
// 同步操作
export const  pushToCRM= (params) => {
    return axios ({
        url: '/studentSpreadResources/push',
        method:'get',
        params   
    })
}
// 2C分中心查询导入
export const importTocBranchInfo = (params) => {
    return axios({
        url: '/tocBranchInfo/importTocBranchInfo',
        method: 'get',
        params
    })
}
// 学习行为日志
export const queryStudyLog = (params) => {
    return axios({
        url: '/StudentLogQuery/queryStudyLog',
        method: 'get',
        params
    })
}
// 查询学生行为统计日志
export const queryActionLog = (params) => {
    return axios({
        url: '/StudentLogQuery/queryActionLog',
        method: 'get',
        params
    })
}
// 微信生态资源
export const studentWechatUserList = (params) => {
    return axios({
        url: '/studentWechatUser/queryList',
        method: 'get',
        params
    })
}
// 微信同步到crm

export const  wechatPushToCRM= (params) => {
    return axios ({
        url: '/studentWechatUser/push',
        method:'get',
        params   
    })
}

// 个人推广资源池
export const  userSpreadResource= (params) => {
    return axios ({
        url: '/studentQuery/userSpreadResource',
        method:'get',
        params   
    })
}

// 查询有没有学习日志 参数 phone 1有 2没有
export const  queryLogState= (params) => {
    return axios ({
        url: '/StudentLogQuery/queryLogState',
        method:'get',
        params   
    })
}

// 咨询师紧急跟进资源
export const  urgentTrackResource= (params) => {
    return axios ({
        url: '/studentQuery/urgentTrackResource',
        method:'get',
        params   
    })
}
// 学生手动流转公海
export const  assignToSeaStatistics= (params) => {
    return axios ({
        url: '/studentQuery/assignToSeaStatistics',
        method:'get',
        params   
    })
}
// 查询发送短信用户
export const  queryForType= (params) => {
    return axios ({
        url: '/studentQuery/queryForType',
        method:'get',
        params   
    })
}
// 发送短信
export const  sendMsg= (data) => {
    return axios ({
        url: '/sms/sendMsg',
        method:'post',
        data   
    })
}

// 发送报告
export const  querySendInfo= (params) => {
    return axios ({
        url: '/sms/querySendInfo',
        method:'get',
        params   
    })
}
// 到期分中心资源
export const  queryExpireBranchResource= (params) => {
    return axios ({
        url: '/studentQuery/queryExpireBranchResource',
        method:'get',
        params   
    })
}
// 查询小额付费订单信息
export const  queryStudentPayOrderList= (params) => {
    return axios ({
        url: '/studentQuery/queryStudentPayOrderList',
        method:'get',
        params   
    })
}

// 查询资源日报统计
export const  queryStuTypeStatisticsDataFromGroupTotal= (params) => {
    return axios ({
        url: '/studentTypeStatistics/queryStuTypeStatisticsDataFromGroupTotal',
        method:'get',
        params   
    })
}

// 查询资源日报统计详情
export const  queryStuTypeStatisticsDataFromGroupList= (params) => {
    return axios ({
        url: '/studentTypeStatistics/queryStuTypeStatisticsDataFromGroupList',
        method:'get',
        params   
    })
}
// 学生今日应跟进

export const  todayNeedToTrackBySystemResource= (params) => {
    return axios ({
        url: '/studentQuery/todayNeedToTrackBySystemResource',
        method:'get',
        params   
    })
}
// 手动设定+空资源
export const  todayNeedToTrackByAssginAndUserSetResource= (params) => {
    return axios ({
        url: '/studentQuery/todayNeedToTrackByAssginAndUserSetResource',
        method:'get',
        params   
    })
}
// 自主填写外呼时间
export const  setUserOwnCallTime= (params) => {
    return axios ({
        url: '/studentCall/setUserOwnCallTime',
        method:'get',
        params   
    })
}
// 查询自主外呼时间
export const  queryUserOwnCallTime= (params) => {
    return axios ({
        url: '/studentCall/queryUserOwnCallTime',
        method:'get',
        params   
    })
}
// 查询直销个人工作量
export const userWorkloadStatistics = (params) => {
    return axios({
        url: '/userWorkloadStatistics/queryList',
        method: 'get',
        params
    })
}
// 咨询师找资料总量监控表
export const userOwnResource = (params) => {
    return axios({
        url: '/studentQuery/userOwnResource',
        method: 'get',
        params
    })
}
// 资源监控 未跟进资源流转统计表
export const studentRecycleDetailInfo = (params) => {
    return axios({
        url: '/studentRecycleDetailInfo/queryList',
        method: 'get',
        params
    })
}
// 资源监控 未跟进资源流转统计表各类详情
export const queryRecycleDetailCountInfo = (params) => {
    return axios({
        url: '/studentRecycleDetailInfo/queryRecycleDetailCountInfo',
        method: 'get',
        params
    })
}
// 未跟进资源统计表

export const queryRecycleDetailList = (params) => {
    return axios({
        url: '/studentRecycleDetailInfo/queryRecycleDetailList',
        method: 'get',
        params
    })
}
// 查询客户来源二级

export const queryStudentDataFromByGroupId = (params) => {
    return axios({
        url: '/code/queryStudentDataFromByGroupId',
        method: 'get',
        params
    })
}

// 推送订单

export const rePush = (params) => {
    return axios({
        url: '/activityOrderInfo/rePush',
        method: 'get',
        params
    })
}


// 下单同步学生信息
export const syncStudentInfo = (data) => {
    return axios({
        url: '/studentOrder/syncStudentInfo',
        method: 'post',
        data
    })
}
// 下单下拉列表查询
export const listPropertyJson = (params) => {
    return axios({
        url: '/studentOrder/listPropertyJson',
        method: 'get',
        params
    })
}
// 查询课单价
export const queryLessonPrice = (params) => {
    return axios({
        url: '/studentOrder/queryLessonPrice',
        method: 'get',
        params
    })
}
// 查询下单商品列表
export const queryBigCProductsPage = (params) => {
    return axios({
        url: '/studentOrder/queryBigCProductsPage',
        method: 'get',
        params
    })
}

// 查询下单商品所有筛选下拉列表
export const listGoodsPropertyJson = (params) => {
    return axios({
        url: '/studentOrder/listGoodsPropertyJson',
        method: 'get',
        params
    })
}
// 更新年级
export const updateStuGrade = (data) => {
    return axios({
        url: '/studentOrder/updateStuGrade',
        method: 'post',
        data
    })
}
// 保存下单信息
export const saveOrder = (data) => {
    return axios({
        url: '/studentOrder/saveOrder',
        method: 'post',
        data
    })
}
// 查询下单列表
export const studentBigcOrderInfoList = (params) => {
    return axios({
        url: '/studentBigcOrderInfo/pageList',
        method: 'get',
        params
    })
}

// 订单列表筛选下拉
export const listOrderPropertyJson = (params) => {
    return axios({
        url: '/studentBigcOrderInfo/listOrderPropertyJson',
        method: 'get',
        params
    })
}

// 商品查询详情
export const queryOrderDetailInfo = (params) => {
    return axios({
        url: '/studentBigcOrderInfo/queryOrderDetailInfo',
        method: 'get',
        params
    })
}

// 三方绑定学生客户来源

export const bindStudentDataFrom = (params) => {
    return axios({
        url: '/frontUserManager/bindStudentDataFrom',
        method: 'post',
        params
    })
}

// 订单审核
export const auditOrder = (data) => {
    return axios({
        url: '/studentBigcOrderInfo/auditOrder',
        method: 'post',
        data
    })
}
// 退单
export const orderRefund = (data) => {
    return axios({
        url: '/studentBigcOrderInfo/orderRefund',
        method: 'post',
        data
    })
}
// 获取订单可退课时
export const queryRefundLessonHour = (params) => {
    return axios({
        url: '/studentBigcOrderInfo/queryRefundLessonHour',
        method: 'get',
        params
    })
}
// 获取子订单客单价
export const queryOrderPerPrice = (params) => {
    return axios({
        url: '/studentBigcOrderInfo/queryOrderPerPrice',
        method: 'get',
        params
    })
}